package com.wang.madness.config.configBean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义Jwt属性
 *
 * @author A
 */
@Data
@Configuration
@EnableConfigurationProperties(JwtConfig.class)
@ConfigurationProperties(prefix = JwtConfig.JWT_CONFIG_PREFIX, ignoreInvalidFields = true)
public class JwtConfig {

  public static final String JWT_CONFIG_PREFIX = "jwt.config";

  /**
   * token有效期(分钟)
   */
  private Integer expiresTimestamp;

  /**
   * 秘钥
   */
  private String sign;

}
